import request from '@/utils/request';

//添加区域
export function AddOrUpdateFolder(data) {
  return request({
    url: 'api/Document/AddOrUpdateFolder',
    method: 'post',
    data
  });
}

export function DelFolder(data) {
  return request({
    url: 'api/Document/DelFolder',
    method: 'post',
    data
  });
}

export function UploadFiles(data) {
  return request({
    url: 'api/Document/UploadFiles',
    method: 'post',
    data
  });
}

export function SetFolderRoles(data) {
  return request({
    url: 'api/Document/SetFolderRoles',
    method: 'post',
    data
  });
}

export function GetFolderList_PID(data) {
  return request({
    url: 'api/Document/GetFolderList_PID',
    method: 'post',
    data
  });
}

export function GetFolderRolesList_ID(data) {
  return request({
    url: 'api/Document/GetFolderRolesList_ID',
    method: 'post',
    data
  });
}

export function GetFilesList_ID(data) {
  return request({
    url: 'api/Document/GetFilesList_ID',
    method: 'post',
    data
  });
}

export function DelFile(data) {
  return request({
    url: 'api/Document/DelFile',
    method: 'post',
    data
  });
}
